package com.felton.springboot.shrio.dao;

import com.felton.springboot.shrio.entity.Permission;

import java.util.List;

public interface PermissionMapper {
    int deleteByPrimaryKey(Integer permissionId);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer permissionId);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

    List<Permission> getPermissionListByUserName(String userName);

    /**
     * 通过权限获取权限id
     * @param id
     * @return
     */
    List<Permission> getPermissionListByRoleId(Integer id);
}